//
//  PrescriptionOrderPatientInfoDetailCell.swift
//  EyeVisionForPatients
//
//  Created by PMC on 2021/8/12.
//  Copyright © 2021 QDSG. All rights reserved.
//

import UIKit

class PrescriptionOrderPatientInfoDetailCell: UITableViewCell {
    
    func bind(to viewModel: PrescriptionOrderDetailCellViewModel) {
        prescriptionNoLabel.text = viewModel.prescriptionId
        nameLabel.text = viewModel.patientDetailName
        sexLabel.text = viewModel.patientSex
        ageLabel.text = viewModel.patientAge
        departmentLabel.text = viewModel.openDoctorDept
        cardLabel.text = viewModel.patientIdcard
    }
    
    @IBOutlet private weak var infoView: UIView! {
        didSet {
//            infoView.layer.cornerRadius = 4
//            infoView.layer.borderWidth = 1
//            infoView.layer.borderColor = UIColor(hex: "#EEEEEE").cgColor
        }
    }
    
    @IBOutlet private weak var prescriptionNoLabel: UILabel!
    @IBOutlet private weak var nameLabel: UILabel!
    @IBOutlet private weak var sexLabel: UILabel!
    @IBOutlet private weak var ageLabel: UILabel!
    
    //科室
    @IBOutlet weak var departmentLabel: UILabel!
    //身份证
    @IBOutlet weak var cardLabel: UILabel!
}
